<?php
/**
 * 后台验证权限中间件
 * ============================================================================
 * * COPYRIGHT 2016-2019 xhadmin.com , and all rights reserved.
 * * WEBSITE: http://www.xhadmin.com;
 * ----------------------------------------------------------------------------
 * This is not a free software!You have not used for commercial purposes in the
 * premise of the program code to modify and use; and publication does not allow
 * any form of code for any purpose.
 * ============================================================================
 * Author: 寒塘冷月 QQ：274363574
 */

namespace app\api\http\middleware;
use app\admin\db\Config as ConfigDb;
use think\facade\Config;
use think\facade\Cache;
use think\facade\Request;

class Check
{
	
    public function handle($request, \Closure $next)
    {	
		$pathinfo = explode('/',$request->pathinfo());
//		$controller = !empty($pathinfo[0]) ? str_replace('.html','',$pathinfo[0]) : 'Index';
//		$action = !empty($pathinfo[1]) ? str_replace('.html','',$pathinfo[1]) : 'index';
//		$app = app('http')->getName();
//        $req = $request->request();
        return $next($request);
    }
}